package Vista;
import javax.swing.BorderFactory;
import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JComboBox;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.JTextField;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableModel;

import controlador.ControladorDetalle;



/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class NewJDialogDetalleCompra extends javax.swing.JDialog {
	private JPanel jPanelDetalleCompra;
	private JLabel jLblIngrediente;
	private JButton jBtoAceptar;
	private JComboBox jCmbIngredientes;
	private JButton jButtonquitarIngred;
	private JButton jButtonagregarcompra;
	private JTable jTabledetalleCompra;
	private JScrollPane jScrollPanedetallecompra;
	private JButton jBtoSalir;
	private JTextField jTxtCantidad;
	private JLabel jLblCantidad;

	/**
	* Auto-generated main method to display this JDialog
	*/
	
	
	
	public NewJDialogDetalleCompra(JFrame frm,
		ControladorDetalle controladorDetalle){
		super(frm);
		initGUI();
	}	
	

	private void initGUI() {
		try {
			{
				this.setTitle("Compras de ingredientes");
				this.setFont(new java.awt.Font("Comic Sans MS",3,14));
				getContentPane().setLayout(null);
				{
					jPanelDetalleCompra = new JPanel();
					getContentPane().add(jPanelDetalleCompra);
					//jPanelDetalleCompra.setLayout(jPanelDetalleCompraLayout);
					jPanelDetalleCompra.setBounds(12, 21, 660, 421);
					jPanelDetalleCompra.setFont(new java.awt.Font("Comic Sans MS",3,14));
					jPanelDetalleCompra.setBorder(BorderFactory.createMatteBorder(1, 1, 1, 1, new java.awt.Color(0,0,0)));
					jPanelDetalleCompra.setLayout(null);
					jPanelDetalleCompra.setBackground(new java.awt.Color(237,206,69));
					{
						jLblCantidad = new JLabel();
						jPanelDetalleCompra.add(jLblCantidad);
						jLblCantidad.setText("Cantidad");
						jLblCantidad.setBounds(325, 37, 90, 20);
						jLblCantidad.setFont(new java.awt.Font("Comic Sans MS",3,14));
					}
					{
						jBtoAceptar = new JButton();
						jPanelDetalleCompra.add(jBtoAceptar);
						jBtoAceptar.setText("Registrar");
						jBtoAceptar.setBounds(23, 367, 98, 28);
						jBtoAceptar.setFont(new java.awt.Font("Comic Sans MS",3,14));
					}
					{
						jTxtCantidad = new JTextField();
						jPanelDetalleCompra.add(jTxtCantidad);
						jTxtCantidad.setBounds(433, 36, 92, 21);
						jTxtCantidad.setFont(new java.awt.Font("Comic Sans MS",3,14));
					}
					{
						jLblIngrediente = new JLabel();
						jPanelDetalleCompra.add(jLblIngrediente);
						jLblIngrediente.setText("Ingrediente");
						jLblIngrediente.setBounds(31, 35, 124, 20);
						jLblIngrediente.setFont(new java.awt.Font("Comic Sans MS",3,14));
					}
					{
						jBtoSalir = new JButton();
						jPanelDetalleCompra.add(jBtoSalir);
						jBtoSalir.setText("Salir");
						jBtoSalir.setBounds(512, 362, 98, 28);
						jBtoSalir.setFont(new java.awt.Font("Comic Sans MS",3,14));
					}
					{
						jScrollPanedetallecompra = new JScrollPane();
						jPanelDetalleCompra.add(jScrollPanedetallecompra);
						jScrollPanedetallecompra.setBounds(31, 96, 565, 150);
						jScrollPanedetallecompra.setFont(new java.awt.Font("Comic Sans MS",3,14));
						{
							TableModel jTabledetalleCompraModel = 
								new DefaultTableModel(
										new String[][] { { "One", "Two" }, { "Three", "Four" } },
										new String[] { "Column 1", "Column 2" });
							jTabledetalleCompra = new JTable();
							jScrollPanedetallecompra.setViewportView(jTabledetalleCompra);
							jTabledetalleCompra.setModel(jTabledetalleCompraModel);
						}
					}
					{
						jButtonagregarcompra = new JButton();
						jPanelDetalleCompra.add(jButtonagregarcompra);
						jButtonagregarcompra.setText("Agregar ingrediente");
						jButtonagregarcompra.setBounds(31, 279, 196, 22);
						jButtonagregarcompra.setFont(new java.awt.Font("Comic Sans MS",3,14));
					}
					{
						jButtonquitarIngred = new JButton();
						jPanelDetalleCompra.add(jButtonquitarIngred);
						jButtonquitarIngred.setText("Quitar Ingrediente");
						jButtonquitarIngred.setBounds(256, 279, 177, 22);
						jButtonquitarIngred.setFont(new java.awt.Font("Comic Sans MS",3,14));
					}
					{
						ComboBoxModel jCmbIngredientesModel = 
							new DefaultComboBoxModel(
									new String[] { "Item One", "Item Two" });
						jCmbIngredientes = new JComboBox();
						jPanelDetalleCompra.add(jCmbIngredientes);
						jCmbIngredientes.setModel(jCmbIngredientesModel);
						jCmbIngredientes.setBounds(173, 34, 89, 26);
						jCmbIngredientes.setFont(new java.awt.Font("Comic Sans MS",3,14));
					}
				}
			}
			this.setSize(721, 484);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	public JTable getjTabledetalleCompra() {
		return jTabledetalleCompra;
	}


	public JPanel getjPanelDetalleCompra() {
		return jPanelDetalleCompra;
	}

	public JLabel getjLblIngrediente() {
		return jLblIngrediente;
	}

	public JButton getjBtoAceptar() {
		return jBtoAceptar;
	}


	public JButton getjButtonquitarIngred() {
		return jButtonquitarIngred;
	}

	public JButton getjButtonagregarcompra() {
		return jButtonagregarcompra;
	}



	public JTextField getjTxtCantidad() {
		return jTxtCantidad;
	}


	public JLabel getjLblCantidad() {
		return jLblCantidad;
	}

	public JButton getjBtoSalir() {
		return jBtoSalir;
	}

	public JComboBox getjCmbIngredientes() {
		return jCmbIngredientes;
	}

}
